/**
 * 支付相关类型定义
 */

/**
 * 订单状态枚举
 */
export enum OrderStatus {
  PENDING = 'pending',
  PAID = 'paid',
  FAILED = 'failed',
  CANCELLED = 'cancelled',
}

/**
 * 支付方式枚举
 */
export enum PaymentMethod {
  CREDIT_CARD = 'credit_card',
  PAYPAL = 'paypal',
  STRIPE = 'stripe',
}

/**
 * 订单信息接口
 */
export interface OrderInfo {
  order_id: string;
  product_id: number;
  product_url?: string;
  amount: number;
  currency: string;
  status: OrderStatus;
  payment_method?: PaymentMethod;
  created_at: string;
  updated_at: string;
}

/**
 * 支付成功回调数据
 */
export interface PaymentSuccessData {
  order_id: string;
  amount: number;
  currency: string;
  payment_method: string;
  transaction_id?: string;
}
